import request from '@/utils/request'

/**
 * 查询所有代理
 *
 * @param {any} query
 * @returns 所有代理
 */
export const getAllAgent = async (query: any) => {
    return await request({
        url: "/agent/getAll",
        method: "get",
        params: query,
    });
};

/**
 * 更新上级用户
 *
 * @param {any} query
 * @returns 更新上级用户
 */
export const editParent = async (query: any) => {
    return await request({
        url: "/user/editParent",
        method: "post",
        params: query,
    });
};
